package com.example.secondhandsysapi.Mapper;


import com.example.secondhandsysapi.Entity.OrderDetailInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailInfoMapper {
    @Select("select * from secondhand.order_details where order_id=#{order_id}")
    List<OrderDetailInfo> getOrderDetailInfo(Integer order_id);
    //添加售后信息
    @Select("UPDATE order_details SET After_service = #{After_service} WHERE order_id = #{order_id}")
    Integer updateAfterDetailInfo(@Param("After_service") String After_service,@Param("order_id") Integer order_id);


}
